package network.client;


import java.security.*;
import java.math.*;

public class MD5 {

    public String md5(String s) throws Exception {

        MessageDigest m = MessageDigest.getInstance("MD5");

        m.update(s.getBytes(), 0, s.length());
        return (new BigInteger(1, m.digest()).toString(16));
    }
}
